<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<h1>
	<fmt:message key="booking.form.title" />
	- ${booking.trip.city}
</h1>

<form:form modelAttribute="booking">
	<input type="hidden" name="execution" value="${flowExecutionKey}">

	<fieldset>
		<c:if test="${empty booking.trip.city}">
			<h1>Vous n'avez pas renseigner la ville!</h1>
		</c:if>
		<!-- infos personne -->
		<div class="form-row">
			<label for="person.firstName"><fmt:message
					key="person.firstName" />:</label> <span class="input"><form:input
					path="person.firstName" /></span>
		</div>
		<div class="form-row">
			<label for="person.lastName"><fmt:message
					key="person.lastName" />:</label> <span class="input"><form:input
					path="person.lastName" /></span>
		</div>
		<div class="form-buttons">
			<div class="button">
				<input type="submit" id="save" name="_eventId_book"
					value="<fmt:message key="button.book"/>" />&#160;
			</div>
		</div>
	</fieldset>
</form:form>